package com.ssm.modules.service;

import com.ssm.modules.entity.Course;

import java.util.List;

/**
 * @email: dong980514280@gmail.com
 * @author: HGL
 * @date: 2018/12/18
 * @time: 22:24
 */

public interface ICourseService {

    List<Course> selectAll();

    int addCourse(Course course);

    int updateCourse(Course course);

    int deleteCourse(int id);

    List<Course> findByStuId(int stuId, int page, int pageSize);

    int findByStuIdCount(int stuId);

    List<Course> findByTeaId(int teaId, int page, int pageSize);

    int findByTeaIdCount(int teaId);

    List<Course> findByTeaIdAndCourseId(int teaId, int courseId, int page, int pageSize);

    int findByTeaIdAndCourseIdCount(int teaId, int courseId);

    int grade(int stuId, int score, int courseId);
}
